package cn.oms.stock.provider.dao.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author AllenChen曾晨
 * @since 2022-04-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("drug_procurement_record")
@ApiModel(value="DrugProcurementRecord对象", description="")
public class DrugProcurementRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID(新增生成) UUID")
    @TableField("ID")
    private String id;

    @ApiModelProperty(value = "采购记录CODE（对应采购记录）")
    @TableField("PURCHASE_RECORD_CODE")
    private String purchaseRecordCode;

    @ApiModelProperty(value = "采购单号 (PU2022041600540001001)")
    @TableField("PURCHASE_ORDER_NO")
    private String purchaseOrderNo;

    @ApiModelProperty(value = "采购药品CODE（对应药品知识库）")
    @TableField("ITEM_CODE")
    private String itemCode;

    @ApiModelProperty(value = "采购药品名称（对应药品知识库）")
    @TableField("ITEM_DESCRIPTION")
    private String itemDescription;

    @ApiModelProperty(value = "采购厂家CODE（对应厂家表）")
    @TableField("MANUFACTURER_CODE")
    private String manufacturerCode;

    @ApiModelProperty(value = "采购厂家名称（对应厂家表）")
    @TableField("MANUFACTURER_NAME")
    private String manufacturerName;

    @ApiModelProperty(value = "采购联系人（对应厂家表）")
    @TableField("MANUFACTURE_PHONE")
    private String manufacturePhone;

    @ApiModelProperty(value = "采购药品数量")
    @TableField("PURCHASE_QTY")
    private BigDecimal purchaseQty;

    @ApiModelProperty(value = "采购单创建人ID")
    @TableField("PURCHASE_MAN_ID")
    private String purchaseManId;

    @ApiModelProperty(value = "采购单创建人姓名")
    @TableField("PURCHASE_MAN_NAME")
    private String purchaseManName;

    @ApiModelProperty(value = "采购原因（药库缺货等）")
    @TableField("REASON")
    private String reason;

    @ApiModelProperty(value = "采购标记（0采购成功 1采购失败）")
    @TableField("RETURN_FLAG")
    private Integer returnFlag;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private LocalDate createTime;

    @ApiModelProperty(value = "删除标记")
    @TableField("DEL_FLAG")
    private Integer delFlag;


}
